<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
	</head>
	<body>
		<script>
			//JavaScript 数字
			var pi = 3.14;
			var x = 34;
			var y = 123e5;
			var z = 123e-5;
			//八进制和十六进制
			var y = 0377;
			var z = 0xFF;
			//输出16进制，8进制，2进制
			var myNumber = 128;
			console.log("16进制: " + myNumber.toString(16));
			console.log("8进制: " + myNumber.toString(8));
			console.log("2进制: " + myNumber.toString(2));
			//NaN - 非数字值
			var x = 1000 / "Apple";
			console.log(isNaN(x));
			var y = 100 / "1000";
			console.log(isNaN(y));
			//数字可以是数字或者对象
			var x = 123;
			var y = new Number(123);
			console.log(typeof(x),typeof(y));
			if(x == y){
				console.log("是相同的");
			}
			
			
		</script>
	</body>
</html>